package models;



//import BCrypto.BCrypt;


public class Passwords {
	
	//private String password;
	public static String encode(String password){
		return  BCrypt.hashpw(password, BCrypt.gensalt());
		
	}
	public static boolean check(String password,String check){
		if(password==null||password=="") return false;
		if (BCrypt.checkpw(password, check)){
			return true;
		}
		return false;
	}
	
	


}
